﻿// -----------------------------------------------------------------------
// <copyright file="FilterConfig.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems. 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Website
{
	#region Usings

	using System.Web;
	using System.Web.Mvc;
	using MBOP.Website.CustomAttributes;

	#endregion

	/// <summary>
	/// Allows to register application's filters
	/// </summary>
	public static class FilterConfig
	{
		/// <summary>
		/// Registers the global filters of the application.
		/// </summary>
		/// <param name="filters">Filters collection</param>
		public static void RegisterGlobalFilters(GlobalFilterCollection filters)
		{
			filters.Add(new CustomHandleErrorAttribute());
		}
	}
}